package com.example.seckill.mappstruct;

import com.example.seckill.controller.co.UserCO;
import com.example.seckill.controller.vo.UserVo;
import com.example.seckill.domain.UserInfo;
import com.example.seckill.domain.UserPassword;
import com.example.seckill.service.model.UserModel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserMap {
    UserMap INSTANCE = Mappers.getMapper(UserMap.class);

    UserModel convertFromDataObject(UserInfo userInfo);

    UserVo convertVoFromModel(UserModel userModel);

    UserModel convertFromDTO(UserCO userCO);

    UserInfo convertDOFromModel(UserModel userModel);

    UserPassword convertPasswordFromModel(UserModel userModel);

}
